import request from '@/utils/request'

//列表
export function listtechnician(query) {
  return request({
    url: '/system/technician/list',
    method: 'get',
    params: query
  })
}


export function getClocklist(query) {
  return request({
    url: '/system/technician/clocklist',
    method: 'get',
    params: query
  })
}

//详情
export function gettechnician(id) {
  return request({
    url: '/system/technician/' + id,
    method: 'get'
  })
}

//新增
export function addtechnician(data) {
  return request({
    url: '/system/technician',
    method: 'post',
    data: data
  })
}

//修改
export function updatetechnician(data) {
  return request({
    url: '/system/technician',
    method: 'put',
    data: data
  })
}
//删除
export function delitetechnician(id) {
  return request({
    url: '/system/technician/' + id,
    method: 'delete'
  })
}

export function listMemberRegion(query) {
  return request({
    url: '/system/region/addList',
    method: 'get',
    params: query
  })
}
export function listMemberStore(query) {
  return request({
    url: '/system/store/pullDown',
    method: 'get',
    params: query
  })
}

export function listpullDownlist(query) {
  return request({
    url: '/system/item/type/pullDown/list',
    method: 'get',
    params: query
  })
}
export function liststorelist(query) {
  return request({
    url: '/system/item/region/pullDown/list',
    method: 'get',
    params: query
  })
}
export function listgetTimeDetail(query) {
  return request({
    url: '/system/technician/getTimeDetail',
    method: 'get',
    params: query
  })
}

export function getOneDayBusyTime(query) {
  return request({
    url: '/system/technician/getOneDayBusyTime',
    method: 'get',
    params: query
  })
}


export function queryTechnicianListByMonth(query) {
  return request({
    url: '/system/technician/queryTechnicianListByMonth',
    method: 'get',
    params: query
  })
}

